src = $(wildcard ./src/*.cpp)

target = $(patsubst ./src/%.cpp, %, $(src))

inc_path = -I./include

args = -Wall -g -std=c++11

CC:=g++

ALL:$(target)

%:./src/%.cpp
	$(CC) $< -o $@ $(args) $(inc_path)

clean:
	-rm -rf $(obj) $(target)

rebuild:clean $(target)

.PHONY:clean ALL rebuild